import { createApp } from 'vue';
// 引入清除默认样式
import '@/style/reset.scss';
// 引入根组件App
import App from '@/App.vue';
// 引入全局组件
import HospitalTop from '@/components/hospital_top/index.vue';
import HospitalBottom from '@/components/hospital_bottom/index.vue';
import Login from '@/components/login/index.vue';
import Visitor from '@/components/visitor/visitor.vue';

import router from '@/router';
// 引入element-plus插件
import ElementPlus from 'element-plus';
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import 'element-plus/dist/index.css';
// 引入pinia仓库
import pinia from "@/store/index";

const app = createApp(App)
app.component('HospitalTop',HospitalTop)
app.component('HospitalBottom',HospitalBottom)
app.component('Login',Login)
app.component('Visitor',Visitor);

app.use(router);

app.use(ElementPlus,{
    locale: zhCn
})

app.use(pinia)
//引入路由鉴权的文件
import './permisstion'

app.mount('#app')
